<div class="admin_left actions">
    <h3 style="font-size:20px;">Manage more</h3>
	<ul>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('Edit Item Status'), array('action' => 'edit', $itemStatus['ItemStatus']['id'])); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Form->postLink(__('Delete Item Status'), array('action' => 'delete', $itemStatus['ItemStatus']['id']), null, __('Are you sure you want to delete # %s?', $itemStatus['ItemStatus']['id'])); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Item Statuses'), array('action' => 'index')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Item Status'), array('action' => 'add')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Items'), array('controller' => 'items', 'action' => 'index')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Item'), array('controller' => 'items', 'action' => 'add')); ?> </li>
	</ul>
</div>


<div class="admin_right itemStatuses view">
    <h2><?php  echo __('Item Status'); ?></h2>
    <table class="table table-striped table-bordered">
        <tr>
            <th><?php echo __('Id'); ?></th>
            <th><?php echo __('Name'); ?></th>
        </tr>

        <tr>
            <td>
                <?php echo h($itemStatus['ItemStatus']['id']); ?>
                &nbsp;
            </td>

            <td>
                <?php echo h($itemStatus['ItemStatus']['name']); ?>
                &nbsp;
            </td>
        </tr>
    </table>


    <div style="border-top:solid 1px; margin-top:10%;" class="related">
        <h4><?php echo __('Related Items'); ?></h4>
        <?php if (!empty($itemStatus['Item'])): ?>
            <table cellpadding = "0" cellspacing = "0" class="table table-striped table-bordered">
                <tr>
                    <th><?php echo __('Id'); ?></th>
                    <th><?php echo __('Name'); ?></th>
                    <th><?php echo __('Bran'); ?></th>
                    <th><?php echo __('Color'); ?></th>
                    <th><?php echo __('Condition'); ?></th>
                    <th><?php echo __('Size'); ?></th>
                    <th><?php echo __('Category'); ?></th>
                    <th><?php echo __('Item Status'); ?></th>
                    <th><?php echo __('Original Price'); ?></th>
                    <th class="actions"><?php echo __('Actions'); ?></th>
                </tr>

                            <?php $i = 0; foreach ($itemStatus['Item'] as $item): ?>
                                <tr>
                                    <td><?php echo $item['id']; ?></td>
                                    <td><?php echo $item['name']; ?></td>
                                    <td><?php echo $item['brand_id']; ?></td>
                                    <td><?php echo $item['color_id']; ?></td>
                                    <td><?php echo $item['condition_id']; ?></td>
                                    <td><?php echo $item['size_id']; ?></td>
                                    <td><?php echo $item['category_id']; ?></td>
                                    <td><?php echo $item['item_status_id']; ?></td>
                                    <td><?php echo $item['original_price']; ?></td>
                                    <td class="actions">
                                        <?php echo $this->Html->link(__('View'), array('controller' => 'items', 'action' => 'view', $item['id'])); ?>
                                        <?php echo $this->Html->link(__('Edit'), array('controller' => 'items', 'action' => 'edit', $item['id'])); ?>
                                        <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'items', 'action' => 'delete', $item['id']), null, __('Are you sure you want to delete # %s?', $item['id'])); ?>
                                    </td>
                                </tr>
                            <?php endforeach;?>
            </table>
        <?php endif; ?>

        <div  style="margin-left:76%;" class="actions">
            <ul>
                <li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('Add item to this item status'), array('controller' => 'items', 'action' => 'add')); ?> </li>
            </ul>
        </div>
    </div>
</div>
